#include <iostream>
using namespace std;

int main(){
	int t,n;
	cin >> t;
	for(int i=0; i<t; i++){
		cin >> n;
		int cnt = 0;
		int L = 1,R = n;
		while( L <= R ) {
			int mid = (L + R)/2;
			L = mid + 1;
			cnt++; 
		} 
		cout << cnt;
	}
	return 0;
} 
